Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebuild on changes to SOURCE_DATE_EPOCH #65

Merged
merged 1 commit into from
Aug 13, 2021
Merged

Rebuild on changes to SOURCE_DATE_EPOCH #65

merged 1 commit into from
Aug 13, 2021

Conversation

lopopolo
Copy link
Contributor

Cargo supports some pragmas to force rebuilds if non-Rust sources become "dirtied".

This PR forces cargo to rebuild if the SOURCE_DATE_EPOCH env variable changes
since it will change how now_data_time and things derived from it are computed.

https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorerun-if-env-changedname

Cargo supports some pragmas to force rebuilds if non-Rust sources become "dirtied".

This PR forces cargo to rebuild if the `SOURCE_DATE_EPOCH` env variable changes
since it will change how `now_data_time` and things derived from it are computed.

https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorerun-if-env-changedname
@baoyachi
Copy link
Owner

Thx.

@baoyachi baoyachi merged commit a940faf into baoyachi:master Aug 13, 2021
@lopopolo lopopolo deleted the patch-1 branch August 13, 2021 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants